﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchRegion.ascx.vb"
    Inherits="WebForm_ManageRegion_SearchRegion" %>
<table>
    <tr>
        <td>
            <table>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblParent" runat="server" meta:resourcekey="lblParent"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtParent" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblParentName" runat="server" meta:resourcekey="lblParentName"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtParentName" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
                        <asp:Button ID="btnAdd" runat="server" meta:resourcekey="btnAdd" AccessKey="a" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br />
<My:MyGridView ID="gv" runat="server" SkinID="pager" AllowHoverSelect="False" DataKeyNames="RegionID"
    AllowHoverEffect="True" MySortDirection="Ascending" meta:resourcekey="gv">
    <Columns>
        <asp:BoundField DataField="RegionID" meta:resourcekey="bfRegionID" />
        <asp:BoundField DataField="RegionName" meta:resourcekey="bfRegionName" />
        <asp:BoundField DataField="Parent" meta:resourcekey="bfParent" />
        <asp:TemplateField>
            <itemtemplate>
                <asp:LinkButton ID="lknEdit" CommandName="Update" runat="server" meta:resourcekey="lknEdit"></asp:LinkButton>
            </itemtemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <itemtemplate>
                <asp:LinkButton ID="lknDelete" CommandName="Delete" runat="server" meta:resourcekey="lknDelete"></asp:LinkButton>
                            <ajaxToolkit:ConfirmButtonExtender ID="cbDelete" runat="server" TargetControlID="lknDelete"
                                meta:resourcekey="cbDelete">
                            </ajaxToolkit:ConfirmButtonExtender>   
            </itemtemplate>
        </asp:TemplateField>
    </Columns>
</My:MyGridView>
